﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace AnnuleringsCheck
{
    class Program
    {
        static void Main(string[] args)
        {
            bool isRunning = true;
            var thread = new Thread(delegate()
            {
                while (isRunning)
                {
                    Console.WriteLine(@"Running Check");
                    new dbPolling().Run();
                    Thread.Sleep(1000*60);
                }
            });
            thread.Start();
            Console.ReadLine();
            isRunning = false;
            thread.Abort();
        }
    }
}
